<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../org/angular.min.js"></script>
	</head>
	<body>
		<div ng-app="hd" ng-controller="ctrl">
			{{data}}
		</div>
		<script>
			var m = angular.module("hd",[]);
			m.controller('ctrl',['$scope',function($scope){
				//对象数据扩充
//				var obj = {name: "ysc"};
//				angular.extend(obj,{url:'houdunwang.com',web: "yangsc"});
//				console.log(obj);
                
                //数据遍历
                $scope.data = [{name: "ysc", url:"baidu.com"},{name: "xyz", url:"taobao.com"}];
                angular.forEach($scope.data,function(v,k){
                	console.log(v,k);
                	v.url = "www." + v.url;
                })
			}]);
		</script>
	</body>
</html>
